package com.crrcdt.controller;

import com.crrcdt.api.TicketService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 神瑛侍者 on 2020/8/30.
 * @version 1.0
 */

@RestController
@RequestMapping("/ticket")
@Api(value = "售票模块管理", description = "售票模块管理")
public class TicketController {
    @Autowired
    TicketService ticketService;
    @ApiOperation(value = "售票模块管理")
    @GetMapping("/sellTicket")
    public String getTicket(){
        return ticketService.getTicket();
    }
}
